Skip to content

Conversation

@compnerd
Copy link
Member

Handle -no-toolchain-stdlib-rpath on Linux/android as well as Darwin. This
enables the flags on other Unix platforms as it can be useful to control the
embedded rpath for the library.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ccd96a0f770cbbf1bb162515bf43907fefe94a4b

@finagolfin
Copy link
Member

finagolfin commented Mar 17, 2020

This is a little better than my previous similar attempt in #30235 as it gets rid of shouldProvideRPathToLinker and -no-toolchain-stdlib-rpath is more descriptive (though it works the same as -no-stdlib-rpath on Unix), but my commit had some tests. Maybe you could adapt the macOS tests for these flags in linker-rpath.swift to run on Unix too.

@compnerd
Copy link
Member Author

This cannot go in without tests. I just wanted to run the test suite since I saw some of failures locally.

I guess I should’ve made it a draft, but I keep forgetting about the functionality.

Thanks for the pointer though, should make things easier.

Handle `-no-toolchain-stdlib-rpath` on Linux/android as well as Darwin.  This
enables the flags on other Unix platforms as it can be useful to control the
embedded rpath for the library.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd
Copy link
Member Author

CC: @gottesmm @tomerd

Copy link
Member

@finagolfin finagolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove my equivalent commit in #30235 once this is in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants